﻿using Christ3D.Domain.Commands;
using Christ3D.Domain.Commands.WsInst;
using Christ3D.Domain.Core.Bus;
using Christ3D.Domain.Interfaces;
using MediatR;
using Microsoft.Extensions.Caching.Memory;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Christ3D.Domain.CommandHandlers
{
    public class WsInstCommandHandler : CommandHandler,
        IRequestHandler<CreateWsInstCommand, bool>
    {
        // 注入仓储接口
        private readonly IStudentRepository _studentRepository;
        // 注入总线
        private readonly IMediatorHandler Bus;
        private IMemoryCache Cache;
        public WsInstCommandHandler(IUnitOfWork uow, IMediatorHandler bus, IMemoryCache cache, IStudentRepository studentRepository) : base(uow, bus, cache)
        {
            _studentRepository = studentRepository;
            Bus = bus;
            Cache = cache;
        }

        public Task<bool> Handle(CreateWsInstCommand request, CancellationToken cancellationToken)
        {
            throw new NotImplementedException();
        }
    }
}
